package com.example.myapplication.kotlin
// 流程控制-while语句-左闭右开写法-until 【until实现】,例如0到10的数字包含0，不包含10
// 90<= until < 100
fun main() {
    // 1.定义一个函数，要求用until实现左闭右开
    fun whereFunc2(score: Int): String = when(score){
        in 90 until 100 -> "A"
        in 80 until 90 -> "B"
        in 70 until 80 -> "C"
        in 60 until  70 -> "D"
        else -> "F"
    }
}


